package com.java.exer;

public class TestPoker {
    public static void main(String[] args) {
        com.java.exer.Poker poker = new com.java.exer.Poker(com.java.exer.PokerType.MH, com.java.exer.PokerPoint.K);
        System.out.println(poker);

        for (com.java.exer.PokerType t : com.java.exer.PokerType.values()) {
            System.out.println(t);
        }

        System.out.println(com.java.exer.PokerType.valueOf("RED_T"));

        int num = 12;

        for (com.java.exer.PokerPoint t : com.java.exer.PokerPoint.values()) {
            if (t.getVal() == num) {
                System.out.println(t);
            }
        }

        System.out.println(com.java.exer.PokerPoint.A.toString());
    }
}
